<?php

namespace DEV\SISBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * DetalleFacturaVenta
 *
 * @ORM\Table(name="detalle_factura_venta")
 * @ORM\Entity(repositoryClass="DEV\SISBundle\Repository\DetalleFacturaVentaRepository")
 */
class DetalleFacturaVenta
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="cantidad", type="string", length=20, nullable=false)
     */
    private $cantidad;

    /**
     * @var float
     *
     * @ORM\Column(name="precio_unit", type="float", nullable=true)
     */
    private $precioUnit;

    /**
     * @var string
     *
     * @ORM\Column(name="alic_iva", type="string", length=20, nullable=true)
     */
    private $alicIva;

    /**
     * @var \FacturaVenta
     *
     * @ORM\ManyToOne(targetEntity="FacturaVenta")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="factura_venta_id", referencedColumnName="id")
     * })
     */
    private $facturaVenta;

    /**
     * @var \Articulos
     *
     * @ORM\ManyToOne(targetEntity="Articulos")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="articulos_id", referencedColumnName="id")
     * })
     */
    private $articulos;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set cantidad
     *
     * @param string $cantidad
     * @return DetalleFacturaVenta
     */
    public function setCantidad($cantidad)
    {
        $this->cantidad = $cantidad;
    
        return $this;
    }

    /**
     * Get cantidad
     *
     * @return string 
     */
    public function getCantidad()
    {
        return $this->cantidad;
    }

    /**
     * Set precioUnit
     *
     * @param float $precioUnit
     * @return DetalleFacturaVenta
     */
    public function setPrecioUnit($precioUnit)
    {
        $this->precioUnit = $precioUnit;
    
        return $this;
    }

    /**
     * Get precioUnit
     *
     * @return float 
     */
    public function getPrecioUnit()
    {
        return $this->precioUnit;
    }

    /**
     * Set alicIva
     *
     * @param string $alicIva
     * @return DetalleFacturaVenta
     */
    public function setAlicIva($alicIva)
    {
        $this->alicIva = $alicIva;
    
        return $this;
    }

    /**
     * Get alicIva
     *
     * @return string 
     */
    public function getAlicIva()
    {
        return $this->alicIva;
    }

    /**
     * Set facturaVenta
     *
     * @param \DEV\SISBundle\Entity\FacturaVenta $facturaVenta
     * @return DetalleFacturaVenta
     */
    public function setFacturaVenta(\DEV\SISBundle\Entity\FacturaVenta $facturaVenta = null)
    {
        $this->facturaVenta = $facturaVenta;
    
        return $this;
    }

    /**
     * Get facturaVenta
     *
     * @return \DEV\SISBundle\Entity\FacturaVenta 
     */
    public function getFacturaVenta()
    {
        return $this->facturaVenta;
    }

    /**
     * Set articulos
     *
     * @param \DEV\SISBundle\Entity\Articulos $articulos
     * @return DetalleFacturaVenta
     */
    public function setArticulos(\DEV\SISBundle\Entity\Articulos $articulos = null)
    {
        $this->articulos = $articulos;
    
        return $this;
    }

    /**
     * Get articulos
     *
     * @return \DEV\SISBundle\Entity\Articulos 
     */
    public function getArticulos()
    {
        return $this->articulos;
    }
}